package com.basaji.manager;

import java.util.List;

import com.basaji.domain.pojo.Topic;

public interface ITopicManager extends IBaseManager {

	int saveTopic(Topic topic);
	
	int saveReply(Topic topic);
	
	void deleteTopic(int id);
	
	void deleteReply(int id);
	
	List<Topic> getReplies(int id,int start,int size);
	
	List<Topic> getTopics(int classificationId,int start,int size) ;
	
	List<Topic> getTopicsByItem(int itemId,int start,int size) ;
	
	List<Topic> getUserTopics(int uid,int start,int size) ;
	
	int getTopicCount(int classifcationId) ;
	
	int getTopicCountByItem(int itemId) ;
	
	int getUserTopicCount(int uid) ;
}
